# -*- coding: utf-8 -*-

from pprint import pprint
from product.kangmaProduct import KangmaProduct
from user.kangmaUser import KangmaUser
from util.utils import Utils


############################################
# 汇总测试模块
############################################

class Kangma():

    def __init__(self):
        pass

    # 新增商品、库存
    def addProduct(self):
        pass


if __name__ == '__main__':
    k = Kangma()

    # 登录
    user = KangmaUser('supplierApp', '13865208627', '888888')
    supplierId = Utils.getSupplierLoginId(user.loginUserInfo)

    product = KangmaProduct(user)
    # 商品管理-商品列表
    productListParm = {
        'supplierId': supplierId,
        'goodsSn': None,
        'name': None,
        'mnemonicCode': None,
        'categoryId': None,
        'brandId': None,
        'status': None,
        'isMarketable': None,
    }
    productListRes = product.getProductList(productListParm)
    pprint(productListRes)
